package com.xja.house.impl;

import com.xja.house.entity.Users;
import com.xja.house.mapper.UsersMapper;
import com.xja.house.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("usersService")
public class UsersServiceImpl implements UsersService {

    @Autowired
    private UsersMapper usersMapper;

    public int insert(Users record) throws Exception {
        return usersMapper.insert(record);
    }
    public Users selectByName(String Name) throws Exception {
        return usersMapper.selectByName(Name);
    }
}
